﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace WorkShop
{
    public partial class ApplicationOrderDetails : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                txtOrderID.Text = Application["OrderID"].ToString();
                txtFullName.Focus();
            }
        }

        protected void btnNext_Click(object sender, EventArgs e)
        {
            Application["FullName"] = txtFullName.Text;
            Application["Address"] = txtAddress.Text;
            Application["City"] = txtCity.Text;
            Application["PhoneNo"] = txtPhone.Text;
            Application["Email"] = txtEmail.Text;
            Response.Redirect("ProductDetails.aspx");
        }

        protected void btnReset_Click(object sender, EventArgs e)
        {
            txtAddress.Text = "";
            txtCity.Text = "";
            txtEmail.Text = "";
            txtFullName.Text = "";            
            txtPhone.Text = "";
            txtState.Text = "";
            txtFullName.Focus();
        }
    }
}